import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/AdminHome.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/LoginView.vue')
    },
    {
      path: '/register',
      name: 'register',
      component: () => import('../views/RegisterView.vue')
    },
    // 用户管理
    {
      path: '/user-management',
      name: 'user-management',
      component: () => import('../views/UserManagement.vue')
    },
    // 商品管理
    {
      path: '/product-management',
      name: 'product-management',
      component: () => import('../views/ProductManagement.vue')
    },
    // 订单管理
    {
      path: '/order-management',
      name: 'order-management',
      component: () => import('../views/OrderManagement.vue')
    },
    // 品牌管理
    {
      path: '/brand-management',
      name: 'brand-management',
      component: () => import('../views/BrandManagement.vue')
    },
    // 类型管理
    {
      path: '/type-management',
      name: 'type-management',
      component: () => import('../views/TypeManagement.vue')
    },
    // 广告商管理
    {
      path: '/advertiser-management',
      name: 'advertiser-management',
      component: () => import('../views/AdvertiserManagement.vue')
    },
    // 物流信息管理
    {
      path: '/logistics-info-management',
      name: 'logistics-info-management',
      component: () => import('../views/LogisticsInfoManagement.vue')
    },
    // 管理员账户管理
    {
      path: '/admin-account-management',
      name: 'admin-account-management',
      component: () => import('../views/AdminAccountManagement.vue')
    },
    // 权限管理
    {
      path: '/permission-management',
      name: 'permission-management',
      component: () => import('../views/PermissionManagement.vue')
    },
    // 业绩报表
    {
      path: '/performance-report',
      name: 'performance-report',
      component: () => import('../views/PerformanceReport.vue')
    },
    // 营销报表
    {
      path: '/marketing-report',
      name: 'marketing-report',
      component: () => import('../views/MarketingReport.vue')
    },
  ]
})

export default router